<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>同步分类数据</title>
		<meta name="viewport" content="width=device-width,height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="renderer" content="webkit" />
		<meta name="aplus-xplug" content="NONE">
		<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/iconfont/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="/static/layui/css/modules/admin/default/admin.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/new_layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/default.css" />
		<script type="text/javascript" charset="utf-8" src="/static/layui/layui.js"></script>
		<script src="/static/js/jquery-2.1.0.js"></script>
		<style>
			.block-one {
				margin-left: 10px;
			}
			
			.block-two {
				margin-left: 50px;
			}
			
			.block-three {
				margin-left: 90px;
			}
			
			form .layui-form-item .layui-input-inline {
				width: auto;
			}
			
			.layui-form-item {
				margin-bottom: 0;
			}
			
			.layui-word-aux {
				color: #ff6600!important;
				margin-top: 2px;
			}
		</style>
	</head>

	<body class="default">
		<div style="margin: 30px 20px;">
			<div class="search-box">
		<form class="search_form layui-form" lay-filter="goods_copy_search_form">
			<div class="layui-inline">
				<label class="layui-form-label">分类</label>
				<div class="layui-input-inline">
					<select name="category_sign1" id="category_search1" lay-filter="copy_category_search1" lay-search>
					</select>
				</div>
				<div class="layui-input-inline">
					<select name="category_sign2" id="category_search2" lay-filter="copy_category_search2" lay-search>
					</select>
				</div>
				<div class="layui-input-inline">
					<select name="category_sign3" id="category_search3" lay-filter="copy_category_search3" lay-search>
					</select>
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">品牌</label>
				<div class="layui-input-inline">
					<select name="brand_sign" id="brand_sign" lay-filter="copy_brand_sign" lay-search>
					</select>
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">名称</label>
				<div class="layui-input-inline">
					<input type="text" name="goods_name" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">编号</label>
				<div class="layui-input-inline">
					<input type="text" name="goods_sku" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">型号</label>
				<div class="layui-input-inline">
					<input type="text" name="goods_model" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="pack-up"></div>
		</form>
		</div>
		<table class="layui-hide" id="goods_copy_list" lay-filter="goods_copy_list"></table>
		</div>
	</body>

</html>
<script>
	var goods_list_url = "{:url('Goods/ajaxCollectList')}",
		goods_save_collect_url = "{:url('Goods/saveCollect')}",
		category_select_uri = "{:url('Category/ajaxCategory')}",
		brand_select_uri = "{:url('Brand/ajaxList')}",
		select_site_id = "{$select_site_id}",
		category_all_sign = "{$category_sign_arr}",
		goods_cols = {$cols};
		$.getScript('/static/js/index.js',function(){
			$.getScript('/static/js/goods/collect.js');
		});
</script>
<script type="text/html" id="goodsToolbar">
	<div class="layui-btn-container">
		<button type="button" class="layui-btn layui-btn-warm layui-btn-sm" lay-event="copyGoods"><i class="layui-icon layui-icon-template-1"></i>采集产品</button>
	</div>
</script>
<script type="text/html" id="goods_pictureTpl">
	{{# if(d.goods_picture){ return '<img src="'+d.goods_picture.save_path_thumb+'" />'; } }}
</script>
<script type="text/html" id="is_realTpl">
	{{# if(d.is_real == 1 || d.is_real == true){ }}
	<input type="checkbox" name="is_real" lay-skin="switch" checked lay-text="是|否" disabled=""> {{# } else { }}
	<input type="checkbox" name="is_real" lay-skin="switch" lay-text="是|否" disabled=""> {{# } }}
</script>
<script type="text/html" id="is_shoppingTpl">
	{{# if(d.is_shopping == 1 || d.is_shopping == true){ }}
	<input type="checkbox" name="is_shopping" lay-skin="switch" checked lay-text="是|否" disabled=""> {{# } else { }}
	<input type="checkbox" name="is_shopping" lay-skin="switch" lay-text="是|否" disabled=""> {{# } }}
</script>
<script type="text/html" id="is_installTpl">
	{{# if(d.is_install == 1 || d.is_install == true){}}
	<div class="layui-anim circle layui-bg-blue" data-title="需要">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="不需要">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="sale_stateTpl">
	{{# if(d.sale_state == 1 || d.sale_state == true){}}
	<div class="layui-anim circle layui-bg-blue" data-title="在售">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="下架">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="audit_stateTpl">
	{{# if(d.audit_state == 1){}}
	<div class="layui-anim circle layui-bg-blue" data-title="通过">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.audit_state == 0){ }}
	<div class="layui-anim circle layui-bg-orange" data-title="等待">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="驳回">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
